package cn.eng.pet.service;

import cn.eng.basic.utils.AjaxResult;
import cn.eng.basic.utils.PageList;
import cn.eng.order.dto.OrderDto;
import cn.eng.pet.domain.SearchMasterMsg;
import cn.eng.basic.service.IBaseService;
import cn.eng.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author BoBo
 * @since 2022-12-27
 */
public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {
    //发布寻主消息
    AjaxResult publish(SearchMasterMsg searchMasterMsg, HttpServletRequest request) throws Exception;
    //用户查询自己的寻主消息
    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query,HttpServletRequest request) throws Exception;
    //待处理
    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, HttpServletRequest request) throws Exception;
    //已完成
    PageList<SearchMasterMsg> finish(SearchMasterMsgQuery query, HttpServletRequest request);
    //寻主池
    PageList<SearchMasterMsg> toSearchMasterPool(SearchMasterMsgQuery query, HttpServletRequest request);
    //拒单
    AjaxResult reject(Long id);
    //接单
    AjaxResult accept(OrderDto dto);
}
